/*
 * Project: com.lawp.web.exception
 * 
 * File Created at 2018/3/20
 * 
 * Copyright 2018 CMCC Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * ZYHY Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license.
 */
package com.common.framework.exception;

/**
 * @author hejianglong
 * @Desc
 * @date 2018/3/20 上午10:31
 */
public class BusinessException extends RuntimeException {

    private String code;

    public BusinessException(String exceptionCode) {
        this.code = exceptionCode;
    }

    public static BusinessException businessException(String exceptionCode) {
        return new BusinessException(exceptionCode);
    }

    public String getCode() {
        return code;
    }
}
